# -*- coding: utf-8 -*-
# @Time    : 2018/2/6 23:59
# @Author  : Soft
# @File    : cache.py

class LocalCache(dict):
    def set(self, key, val):
        self[key] = val
        return self

    def has_key(self, key):
        return key in self


cache = LocalCache()
